import request from '@/utils/request'

// 查询检疫登记列表
export function listQualityinspection(query) {
    return request({
        url: '/qualityinspection/qualityinspection/list',
        method: 'get',
        params: query
    })
}

// 查询检疫登记详细
export function getQualityinspection(id) {
    return request({
        url: '/qualityinspection/qualityinspection/' + id,
        method: 'get'
    })
}

// 新增检疫登记
export function addQualityinspection(data) {
    return request({
        url: '/qualityinspection/qualityinspection',
        method: 'post',
        data: data
    })
}

// 修改检疫登记
export function updateQualityinspection(data) {
    return request({
        url: '/qualityinspection/qualityinspection',
        method: 'put',
        data: data
    })
}

// 删除检疫登记
export function delQualityinspection(id) {
    return request({
        url: '/qualityinspection/qualityinspection/' + id,
        method: 'delete'
    })
}

export function quereybatch() {
    return request({
        url: '/qualityinspection/qualityinspection/quereybatch',
        method: 'get'
    })
}
